//
//  ZMCategoryViewModel.swift
//  LoveBeen
//
//  Created by pg on 2017/8/7.
//  Copyright © 2017年 pg. All rights reserved.
//

import UIKit

class ZMCategoryViewModel: NSObject {
    
    lazy var categorysModelArray: [ZMCategoriesModel] = {
      
        var modelarray = [ZMCategoriesModel]()
        
        ZMNetworkingManager.sharedManager.requestShopData(reloadDataCompaltion: { (dataArray, isSuccess) in
            
            if isSuccess == false{
                return
            }
            guard  let modelarr = dataArray else{
                return
            }
            
            
           modelarray = modelarr
            
            
        })
        
        return modelarray
    }()
    
    
}
